package com.ilvyou.data.lcs;

import java.sql.Timestamp;

/**
 * Created by Administrator on 2017/2/13.
 */
public class CollectBruleEntity {
    private Long collectid;
    private Long actid;
    private Integer ruleid;
    private Integer levelid;
    private Integer finishedflag;
    private Timestamp finisheddate;
    private Integer addflag;
    private Timestamp adddate;
    private Integer removeflag;
    private Timestamp removedate;
    private String createdname;
    private Timestamp createdon;
    private Long createdby;
    private String createdip;
    private String lastedname;
    private Timestamp lastedon;
    private Long lastedby;
    private String lastedip;

    public Long getCollectid() {
        return collectid;
    }

    public void setCollectid(Long collectid) {
        this.collectid = collectid;
    }

    public Long getActid() {
        return actid;
    }

    public void setActid(Long actid) {
        this.actid = actid;
    }

    public Integer getRuleid() {
        return ruleid;
    }

    public void setRuleid(Integer ruleid) {
        this.ruleid = ruleid;
    }

    public Integer getLevelid() {
        return levelid;
    }

    public void setLevelid(Integer levelid) {
        this.levelid = levelid;
    }

    public Integer getFinishedflag() {
        return finishedflag;
    }

    public void setFinishedflag(Integer finishedflag) {
        this.finishedflag = finishedflag;
    }

    public Timestamp getFinisheddate() {
        return finisheddate;
    }

    public void setFinisheddate(Timestamp finisheddate) {
        this.finisheddate = finisheddate;
    }

    public Integer getAddflag() {
        return addflag;
    }

    public void setAddflag(Integer addflag) {
        this.addflag = addflag;
    }

    public Timestamp getAdddate() {
        return adddate;
    }

    public void setAdddate(Timestamp adddate) {
        this.adddate = adddate;
    }

    public Integer getRemoveflag() {
        return removeflag;
    }

    public void setRemoveflag(Integer removeflag) {
        this.removeflag = removeflag;
    }

    public Timestamp getRemovedate() {
        return removedate;
    }

    public void setRemovedate(Timestamp removedate) {
        this.removedate = removedate;
    }

    public String getCreatedname() {
        return createdname;
    }

    public void setCreatedname(String createdname) {
        this.createdname = createdname;
    }

    public Timestamp getCreatedon() {
        return createdon;
    }

    public void setCreatedon(Timestamp createdon) {
        this.createdon = createdon;
    }

    public Long getCreatedby() {
        return createdby;
    }

    public void setCreatedby(Long createdby) {
        this.createdby = createdby;
    }

    public String getCreatedip() {
        return createdip;
    }

    public void setCreatedip(String createdip) {
        this.createdip = createdip;
    }

    public String getLastedname() {
        return lastedname;
    }

    public void setLastedname(String lastedname) {
        this.lastedname = lastedname;
    }

    public Timestamp getLastedon() {
        return lastedon;
    }

    public void setLastedon(Timestamp lastedon) {
        this.lastedon = lastedon;
    }

    public Long getLastedby() {
        return lastedby;
    }

    public void setLastedby(Long lastedby) {
        this.lastedby = lastedby;
    }

    public String getLastedip() {
        return lastedip;
    }

    public void setLastedip(String lastedip) {
        this.lastedip = lastedip;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CollectBruleEntity that = (CollectBruleEntity) o;

        if (collectid != null ? !collectid.equals(that.collectid) : that.collectid != null) return false;
        if (actid != null ? !actid.equals(that.actid) : that.actid != null) return false;
        if (ruleid != null ? !ruleid.equals(that.ruleid) : that.ruleid != null) return false;
        if (levelid != null ? !levelid.equals(that.levelid) : that.levelid != null) return false;
        if (finishedflag != null ? !finishedflag.equals(that.finishedflag) : that.finishedflag != null) return false;
        if (finisheddate != null ? !finisheddate.equals(that.finisheddate) : that.finisheddate != null) return false;
        if (addflag != null ? !addflag.equals(that.addflag) : that.addflag != null) return false;
        if (adddate != null ? !adddate.equals(that.adddate) : that.adddate != null) return false;
        if (removeflag != null ? !removeflag.equals(that.removeflag) : that.removeflag != null) return false;
        if (removedate != null ? !removedate.equals(that.removedate) : that.removedate != null) return false;
        if (createdname != null ? !createdname.equals(that.createdname) : that.createdname != null) return false;
        if (createdon != null ? !createdon.equals(that.createdon) : that.createdon != null) return false;
        if (createdby != null ? !createdby.equals(that.createdby) : that.createdby != null) return false;
        if (createdip != null ? !createdip.equals(that.createdip) : that.createdip != null) return false;
        if (lastedname != null ? !lastedname.equals(that.lastedname) : that.lastedname != null) return false;
        if (lastedon != null ? !lastedon.equals(that.lastedon) : that.lastedon != null) return false;
        if (lastedby != null ? !lastedby.equals(that.lastedby) : that.lastedby != null) return false;
        if (lastedip != null ? !lastedip.equals(that.lastedip) : that.lastedip != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = collectid != null ? collectid.hashCode() : 0;
        result = 31 * result + (actid != null ? actid.hashCode() : 0);
        result = 31 * result + (ruleid != null ? ruleid.hashCode() : 0);
        result = 31 * result + (levelid != null ? levelid.hashCode() : 0);
        result = 31 * result + (finishedflag != null ? finishedflag.hashCode() : 0);
        result = 31 * result + (finisheddate != null ? finisheddate.hashCode() : 0);
        result = 31 * result + (addflag != null ? addflag.hashCode() : 0);
        result = 31 * result + (adddate != null ? adddate.hashCode() : 0);
        result = 31 * result + (removeflag != null ? removeflag.hashCode() : 0);
        result = 31 * result + (removedate != null ? removedate.hashCode() : 0);
        result = 31 * result + (createdname != null ? createdname.hashCode() : 0);
        result = 31 * result + (createdon != null ? createdon.hashCode() : 0);
        result = 31 * result + (createdby != null ? createdby.hashCode() : 0);
        result = 31 * result + (createdip != null ? createdip.hashCode() : 0);
        result = 31 * result + (lastedname != null ? lastedname.hashCode() : 0);
        result = 31 * result + (lastedon != null ? lastedon.hashCode() : 0);
        result = 31 * result + (lastedby != null ? lastedby.hashCode() : 0);
        result = 31 * result + (lastedip != null ? lastedip.hashCode() : 0);
        return result;
    }
}
